Make globals.h a generated header
authorTom Tromey <tromey@redhat.com>
Tue, 8 Feb 2011 21:42:56 +0000 (14:42 -0700)
committerTom Tromey <tromey@redhat.com>
Tue, 8 Feb 2011 21:42:56 +0000 (14:42 -0700)
commitcf1253b30e33abaa578d3809be9d3be645feb1ff
tree9fb25d78e802484f1b9091e13a039cb0bc11ff22
parent655175fe4efb709ec7d8eebc48aacaf87dda8900
Make globals.h a generated header
* configure: Rebuild.
* configure.in (NS_OBJC_OBJ): New subst.
lib-src
* make-docfile.c: Unconditionally include stdlib.h.
(generate_globals): New global.
(xrealloc): New function.
(main): Handle '-g'.  Call start_globals, write_globals.
(scan_file): Conditionally call put_filename.
(start_globals): New function.
(struct global): New.
(num_globals, globals): New globals.
(add_global, compare_globals, write_globals): New functions.
(scan_c_file): Update for "-g".
(scan_lisp_file): Fail if "-g".
(enum global_type): New.
src
* Makefile.in (NS_OBJC_OBJ): New variable.
(base_obj): Rename from 'obj'.
(obj): New variable.
(globals.h, gl-stamp, $(obj)): New targets.
(GLOBAL_SOURCES): New variable.
* globals.h: Remove.
* nsselect.m (Vselection_alist): Define.  Reverts part of
r102904.
* buffer.c: Don't use "no_cell" for name of kill-buffer-hook's
variable.
* xselect.c (Vselection_alist): Define.  Reverts part of r102908.
ChangeLog
configure
configure.in
lib-src/ChangeLog
lib-src/make-docfile.c
src/ChangeLog
src/Makefile.in
src/buffer.c
src/globals.h [deleted file]
src/nsselect.m
src/xselect.c